package com.hiep.connect.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class UserSearchEvent extends GwtEvent<UserSearchEventHandler> {
	public static Type<UserSearchEventHandler> TYPE = new Type<UserSearchEventHandler>();

	private String searchFor;

	public String getSearchFor() {
		return searchFor;
	}

	public UserSearchEvent(String searchFor) {
		this.searchFor = searchFor;
	}

	@Override
	public Type<UserSearchEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(UserSearchEventHandler handler) {
		handler.onUserSearch(this);
	}
}
